<?php 

// +----------------------------  收货地址相关路由 ------------------------------------------

use think\facade\Route;

Route::group("address", function (){
    // 设置默认地址，接收参数：id, user_id
    Route::put("setDefault/:id/:userId", "AddressController/setDefaultAddress");

    // 删除收货地址，接收参数：id
    Route::delete("delete/:id", "AddressController/deleteAddress");

    // 编辑收货地址，接收参数：id, user_id
    Route::put("edit/:id/:userId", "AddressController/editAddress");
    
});
